<include file="Public/header" />

<div class="ibox float-e-margins">
<div class="ibox-title">
    <h5>菜单信息</h5>

    <div class="ibox-tools">
        <a class="collapse-link" href="{:U('menu/index')}">
            <i class="fa fa-chevron-up"></i>后台菜单
        </a>
         <a class="collapse-link" href="{:U('menu/add')}">
            <i class="fa fa-plus"></i>添加菜单
        </a>

    </div>



</div>
	
			<form method="post" class="J_ajaxForm" action="{:U('Menu/edit')}">
					 <div class="ibox-content">
					 <table class="table table-striped table-bordered table-hover dataTables-example dataTable" data-page-size="8">
						<input type="hidden" name="id" value="{$id}" />
						<tbody>
							<tr>
								<td width="140">上级:</td>
								<td><select name="parentid" class="form-control">
										<option value="0">作为一级菜单</option>
										{$select_categorys}
									</select></td>
							</tr>
							<tr>
								<td>名称:</td>
								<td><input type="text" class="input form-control" name="name" value="{$data.name}"></td>
							</tr>
							<tr>
								<td>项目:</td>
								<td><input type="text" class="input form-control" name="app" id="app" value="{$data.app}"></td>
							</tr>
							<tr>
								<td>模块:</td>
								<td><input type="text" class="input form-control" name="model" id="model" value="{$data.model}"></td>
							</tr>
							<tr>
								<td>方法:</td>
								<td><input type="text" class="input form-control" name="action" id="action" value="{$data.action}"></td>
							</tr>
							<tr>
								<td>参数:</td>
								<td><input type="text" class="input length_5 form-control" name="data" value="{$data.data}">
									例:g=admin&amp;m=menu&amp;a=add；外部链接以http://开头</td>
							</tr>
							<tr>
								<td>图标:</td>
								<td><input type="text" class="input form-control" name="icon" id="action" value="{$data.icon}"></td>
							</tr>
							<tr>
								<td>备注:</td>
								<td><textarea name="remark" rows="5" cols="57" class="form-control">{$data.remark}</textarea></td>
							</tr>
							<tr>
								<td>状态:</td>
								<td><select name="status" class="form-control">
										<option value="1" <eq name="data.status" value="1">selected</eq>>显示</option>
										<option value="0" <eq name="data.status" value="0">selected</eq>>不显示</option>
									</select></td>
							</tr>
							<tr>
								<td>类型:</td>
								<td><select name="type" class="form-control">
										<option value="1" <eq name="data.type" value="1">selected</eq>>权限认证+菜单</option>
										<option value="0" <eq name="data.type" value="0">selected</eq>>只作为菜单</option>
									</select>
									注意：“权限认证+菜单”表示加入后台权限管理，纯碎是菜单项请不要选择此项。</td>
							</tr>
						</tbody>
					</table>
				
				<div class="">
					<div class="btn_wrap_pd">
						<button class=" mr10 J_ajax_submit_btn btn btn-primary  btn-outline" type="submit">修改</button>
						<input type="hidden" name="id" value="{$data.id}" />
					</div>
				<hr/>
				</div>
			</form>
		
	</div>
